<?php $this->load->view("common/header") ?>
<body>
<?php  

/*
foreach($report_parent as $r)
{
	dump($r[0]['company_name']);	
}
*/


?>
  <div id="page_wrapper">
<?php $this->load->view("common/speel") ?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><form name="form1" method="post" action="<?php echo base_url() ."report/user_hours" ?>">
        <table width="500" border="0" align="left" cellpadding="5" cellspacing="0">
          <tr>
        <td colspan="4"><span class="welcomeMsg">Report :: User Reports :: Hours Logged Per User</span></td>
        </tr>
          <tr>
            <td width="67" align="left" class="tbl_field_lable">Start date</td>
            <td width="144"><input type="text" name="report_start" id="report_start"></td>
            <td width="144"><input name="report_start_time" type="text" id="jog_start_time" value="00:00"></td>
            <td width="105" align="left" class="tblBodyNoneHover"><input name="action" type="submit" class="tblBtn" id="action" value=" Build Report "></td>
          </tr>
          <tr>
            <td align="left" class="tbl_field_lable">End date</td>
            <td><input type="text" name="report_end" id="report_end"></td>
            <td><input name="report_end_time" type="text" id="jog_end_time" value="23:59"></td>
            <td align="right" class="tblBodyNoneHover">&nbsp;</td>
          </tr>
      </table>
      </form></td>
    </tr>
    <tr>
      <td><?php if(!empty($jobs)) { ?>
        <br>
        <br>
        <table width="95%" border="0" align="left" cellpadding="2" cellspacing="0">
          <tr class="tblSubHeader">
            <td class="tbl_header"><strong>Client Reports : Hours Logged per User</strong> for the period of '<?php echo $s ?>' to '<?php echo $e ?>'</td>
          </tr>
          <tr>
            <td><table width="99%" border="0" align="center" cellpadding="5" cellspacing="0">
              <tr class="panelHeaderBgColor">
                <td width="24%" class="tbl_row_header">User</td>
                <td width="31%" class="tbl_row_header">Full name</td>
                <td width="40%" class="tbl_row_header">Hours Logged</td>
                <td width="5%">&nbsp;</td>
              </tr>
              <?php foreach($jobs as $r)
			  { 
			   ?>
              <tr bgcolor="" class="reportTr2">
                <td bgcolor="" class="tbl_row"><?php echo $r['username'] ?></td>
                <td bgcolor="" class="tbl_row"><?php echo $r['firstname']. " " . $r['lastname'] ?></td>
                <td bgcolor="" class="tbl_row"><?php echo format_hours_logged($r['spent2']) ?></td>
                <td align="center" bgcolor="" class="borderBot">&nbsp;</td>
              </tr>
              <tr style="display:none">
                <td colspan="4">&nbsp;</td>
              </tr>
              <?php } ?>
            </table></td>
          </tr>
        </table>
      <?php } ?></td>
    </tr>
</table>
<h1><br>
  <br>
</h1>


<?php $this->load->view("common/footer") ?>
</div>
</body>
</html>
